package speakershareserver;

import javax.sound.sampled.*;

public abstract class Settings {

	public static final int PORT = 6477;

	// Audio format
	public static final float SAMPLE_RATE = 44100;
	public static final int SAMPLE_SIZE_IN_BITS = 16;
	public static final int NUM_CHANNELS = 2;
	public static final AudioFormat audioFormat = new AudioFormat(
			SAMPLE_RATE,
			SAMPLE_SIZE_IN_BITS,
			NUM_CHANNELS,
            true,				// signed
            false);				// little endian

	// Tuning parameters
	public static final int CHUNK_SIZE = 44100; // Must be integral of sample size in bytes
	//public static final int BUFFER_SIZE = (int)SAMPLE_RATE*audioFormat.getFrameSize() * 1; // 1 seconds, in bytes
}
